#include "ImageHandler.h"

bool ImageHandler::init(CameraHandler* cameraHandler) {
    sendImg = new SendImgThread();
    imgThread = new ImageThread(sendImg);
    sendImg->start();
    //imgThread->start();

    connect(cameraHandler, SIGNAL(pushImg(QImage)), sendImg, SLOT(ImageCapture(QImage)));
    //connect(imgThread, SIGNAL(finished()), sendImg, SLOT(clearImgQueue()));

    return true;
}